Repository navigation
GA-9681: Update tooling and geoh5py dependency - #178
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
GitHub Actions checkout v7 refuses fork pull-request checkouts in pull_request_target workflows unless unsafe checkout is explicitly enabled. Keep the latest pinned v4 release for the review-only workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The direct Git dependency produces distribution metadata rejected by PyPI and TestPyPI, causing both deployment workflows’ publication steps to fail even if the build succeeds.
1 open issue
What changed in this PR
This PR prepares SimPEG’s Python distribution for the 4.9 beta by refreshing development and CI tooling and updating the geoh5py dependency.
Changes:
- Update and pin formatting, linting, type-checking tools, and GitHub Actions.
- Resolve geoh5py from the
GA-9681branch and align Rattler runtime and build requirements. - Apply small formatting, docstring, and tutorial cleanups.
| File | Description |
|---|---|
tutorials/08-tdem/plot_inv_3_tem_3d.py |
Remove imports and rename an unused loop variable. |
simpeg/utils/pgi_utils.py |
Reformat the KMeans call. |
simpeg/maps.py |
Add summaries to two docstrings. |
simpeg/directives/_directives.py |
Standardize docstring section headings. |
recipe.yaml |
Update geoh5py and setuptools-scm requirements. |
pyproject.toml |
Change the geoh5py source and update development tool pins. |
environment.yml |
Align tool versions and add mypy. |
.pre-commit-config.yaml |
Update Black, Flake8, and Ruff hooks. |
.github/workflows/zizmor-security-upstream.yml |
Update checkout and Python setup actions. |
.github/workflows/wip-status.yml |
Update the reusable WIP-status workflow. |
.github/workflows/test-latest.yml |
Pin checkout and cache actions to commit hashes. |
.github/workflows/security_scan.yml |
Update reusable security-analysis workflows. |
.github/workflows/python_deploy_prod.yml |
Update production release and publishing actions. |
.github/workflows/python_deploy_dev.yml |
Update development build and publishing actions. |
.github/workflows/pull_request.yml |
Update checkout, Python setup, and Black review actions. |
.github/workflows/pr_jira_actions.yml |
Update the reusable PR-to-Jira workflow. |
.github/workflows/issue_to_jira.yml |
Update the reusable issue-to-Jira workflow. |
.github/workflows/dependabot-auto-merge.yml |
Update the reusable Dependabot auto-merge workflow. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Declare distributed with the Dask extra and CI environment, and import the available Dask simulation exports. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| DaskMetaSimulation, | ||
| DaskMetaSimulationExplicit, | ||
| DaskSumMetaSimulation, |
There was a problem hiding this comment.
@domfournier, can you confirm this analysis (by Copilot) is correct?
DaskMetaSimulationExplicit is not defined in dask_sim.py. Importing it raised ImportError, triggering the fallback in simpeg\meta_init_.py and disabling the real Dask classes—even when Dask was installed.
Only the stale import was removed, not an implementation. The six focused Dask tests now pass.
There was a problem hiding this comment.
🟡 Changes recommended
The removed side-effect import causes the standalone TDEM tutorial to fail during inversion initialization, while the geoh5py requirement conflicts with the workflow’s Python 3.15 default and blocks test environment creation.
2 open issues
1 resolved since last review
Review effort: Balanced
| - twine | ||
| - python-build | ||
| - pip: | ||
| - "geoh5py>=0.14.0b1,<0.15.0" |
Import dask from SimPEG for TDEM sensitivity methods. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

GA-9681 - update Python distribution for 4.9 beta
Summary
Validation
uv buildsucceeded.tests/meta/test_meta_sim.pyandtests/meta/test_multiprocessing_sim.py: 17 passed.pip-audit: no known vulnerabilities in audited dependencies (private Git dependencies are not present on PyPI).prek validate-configandpinact run --verifypassed.